package me.zhengjie.modules.weixin.enums;

/**
 * 微信公众号消息类型枚举
 *
 */
public enum WeChatMsgTypeEnum {

    event, text, image, voice, video, shortvideo, location, link, music, news, mpnews, transfer_customer_service, miniprogrampage, template, other;

    WeChatMsgTypeEnum() {

    }

    public static WeChatMsgTypeEnum get(String type) {
        for (WeChatMsgTypeEnum msgType : WeChatMsgTypeEnum.values()) {
            if (msgType.name().equalsIgnoreCase(type)) {
                return msgType;
            }
        }
        return other;
    }

}
